<template>
  <div class="home">
    <el-container>
      <!--左边内容 -->
      <el-aside width="200px">
        <el-row class="tac">
          <el-col :span="24">
            <el-menu
              default-active="1"
              class="el-menu-vertical-demo"
               router
              background-color="#545c64"
            >
              <el-menu-item index="1">
                <i class="el-icon-menu"></i>
                <span slot="title">首　页</span>
              </el-menu-item>
              <el-submenu index="2">
                <template slot="title">
                  <i class="el-icon-location"></i>
                  <span>导航一</span>
                </template>
                <el-menu-item-group >
                  <!-- <template slot="title">分组一</template> -->
                  <el-menu-item index="/">用户列表</el-menu-item>
                  <el-menu-item index="/about">商家列表</el-menu-item>
                  <el-menu-item index="1-3">食品列表</el-menu-item>
                  <el-menu-item index="1-4">订单列表</el-menu-item>
                  <el-menu-item index="1-5">管理员列表</el-menu-item>
                </el-menu-item-group>
              </el-submenu>
              <el-menu-item index="3">
                <i class="el-icon-document"></i>
                <span slot="title">导航三</span>
              </el-menu-item>
              <el-menu-item index="4">
                <i class="el-icon-setting"></i>
                <span slot="title">导航四</span>
              </el-menu-item>
            </el-menu>
          </el-col>
        </el-row>
      </el-aside>
      <!-- 右边内容 -->
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </div>
</template>

<script>
export default {};
</script>

<style >
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  /* line-height: 160px; */
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 0px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
/deep/ .el-main {
  padding: 0;
}
/deep/ .el-submenu__title{
  color: white;
}
*{
  margin: 0;
  padding: 0;
}
</style>

